package de.tum.in.eist.poll.shared.beans;


/**
 * A Student is a User who can only participate in polls
 * set up by his/her Lecturer for a Lecture.
 * 
 * @author The EIST-POLL-21 team.
 *
 */
public class Student extends User {
	/**
	 * serialization version
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * The Student's lecturer
	 */
	private String lecturerID;

	/**
	 * Dummy constructor for GWT
	 */
	public Student() {
		this("Dummy", "dummy", new Lecturer().getUserID());
	}
	
	/**
	 * Construct a Student with password for a Lecturer
	 * 
	 * @param userID   The Student's user ID
	 * @param password The Student's password
	 * @param lecturerID The Lecturer's password
	 */
	public Student(String userID, String password, String lecturerID) {
		super(userID, password);
		this.lecturerID = lecturerID;
	}
	
	/**
	 * @return The Student's lecturer
	 */
	public String getLecturerID() {
		return lecturerID;
	}
}
